<script>
$.post('{{ urlfor "ProductsController.GetOptions"}}', {'fields':['goods_film', 'goods_lens_genre', 'goods_lens_optical_design', 'goods_lens_refractivity', 'goods_function_info', 'goods_lens_material_quality', 'goods_unit_info']},  function(res){
	setattroption('Genre',res.data.goods_lens_genre);
	setattroption('OpticalDesign',res.data.goods_lens_optical_design);
	setattroption('Refractivity',res.data.goods_lens_refractivity);
	setattroption('FunctionInfo',res.data.goods_function_info);
	setattroption('MaterialQuality',res.data.goods_lens_material_quality);
	setattroption('Unit',res.data.goods_unit_info);
    setattroption('Film',res.data.goods_film);
});
function setSelectDefault(id) {
	switch(id){
		case 'Genre':$('#Genre').val('{{.m.Genre}}');break;
		case 'OpticalDesign':$('#OpticalDesign').val('{{.m.OpticalDesign}}');break;
		case 'Refractivity':$('#Refractivity').val('{{.m.Refractivity}}');break;
		case 'FunctionInfo':$('#FunctionInfo').val('{{.m.FunctionInfo}}');break;
		case 'MaterialQuality':$('#MaterialQuality').val('{{.m.MaterialQuality}}');break;
		case 'Unit':$('#Unit').val('{{.m.Unit}}');break;
	};
	$("select").trigger('changed.selected.amui');
}

</script>
{{template "./products/prozl/p.html" .}}

